<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html>
<html lang="en">
	<head>
		<base href="<%=basePath%>">
		
		<meta charset="utf-8" />
		<title></title>
		
		<meta name="description" content="overview & stats" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<link href="static/css/bootstrap.min.css" rel="stylesheet" />
		<link href="static/css/bootstrap-responsive.min.css" rel="stylesheet" />
		<link rel="stylesheet" href="static/css/font-awesome.min.css" />
		<link rel="stylesheet" href="static/css/ace.min.css" />
		<link rel="stylesheet" href="static/css/ace-responsive.min.css" />
		<link rel="stylesheet" href="static/css/ace-skins.min.css" />
		
		<script type="text/javascript" src="static/js/jquery-1.7.2.js"></script>
		<!--提示框-->
		<script type="text/javascript" src="static/js/jquery.tips.js"></script>
</head>

<body>
	<iframe name="theIframeSubmitID" style="display:none;"></iframe> 
	<form  action="<%=basePath%>/members/edit.do" name="Form" id="Form" method="post" target="theIframeSubmitID">
		<div id="centerOfMainFrame">
		<table>
			<tr class="info">
				<td>是否启用:</td>
				<td>
					<select id="is_enabled" name="is_enabled">
						<c:choose>
							<c:when test="${pd.is_enabled eq true }">
								<option value="0" >未启用</option>
								<option value="1" selected>启用</option>
							</c:when>
							<c:otherwise>
								<option value="0" selected >未启用</option>
								<option value="1" >启用</option>
							</c:otherwise>
						</c:choose>
					</select>	
				</td>
			</tr>
			<tr class="info">
				<td>是否锁定:</td>
				<td>
					<select id="is_locked" name="is_locked">
						<c:choose>
							<c:when test="${pd.is_locked eq true}">
								<option value="0" >未锁定</option>
								<option value="1" selected>锁定</option>
							</c:when>
							<c:otherwise>
								<option value="0" selected >未锁定</option>
								<option value="1" >锁定</option>
							</c:otherwise>
						</c:choose>
					</select>	
				</td>
			</tr>
			<tr class="info">
				<td>初吻币数量:</td>
				<td><input type="text" name="rose_total" id="rose_total"  value="${pd.rose_total }"  maxlength="32" title="初吻币数量" /></td>
			</tr>
			<tr class="info">
				<td>钻石数量:</td>
				<td><input type="text" name="consum_total" id="consum_total"  value="${pd.consum_total }"  maxlength="32" title="钻石数量" /></td>
			</tr>
			<tr class="info">
				<td>积分数:</td>
				<td><input type="text" name="gift_total" id="gift_total"  value="${pd.gift_total }"  maxlength="32" title="积分数" /></td>
			</tr>
			<tr class="info">
				<td>人气数:</td>
				<td><input type="text" name="affinity" id="affinity"  value="${pd.affinity }"  maxlength="32" title="人气数" /></td>
			</tr>
			<tr>
				<td style="text-align: center;" colspan="2">
					<a class="btn btn-mini btn-primary" onclick="save_members();">保存</a>
					<a class="btn btn-mini btn-danger" onclick="top.Dialog.close();">取消</a>
					<input type="hidden" id="m_id" name="m_id" value="${pd.m_id}"/>
				</td>
			</tr>
		</table>
		</div>
		<div id="centerOfMainFrame2" class="center" style="display:none"><br/><br/><br/><img src="static/images/jzx.gif" style="width: 50px;" /><br/><h4 class="lighter block green"></h4></div>
	</form>
	
</body>

<script type="text/javascript">
	$(top.hangge());
	
	//保存
	function save_members(){
		$("#Form").submit();
		//$("#centerOfMainFrame").hide();
		//$("#centerOfMainFrame2").show();
		setTimeout("top.Dialog.close()",100);
	}
	
</script>

</html>